package com.imooc.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

@ApiIgnore
@RestController
public class HelloController {
    final static Logger logger = LoggerFactory.getLogger(HelloController.class);
    @GetMapping("/hello")
    public Object Hello(){
        logger.info("info:hello~");
        logger.debug("info:hello~");
        logger.warn("info:hello~");
        logger.error("info:hello~");
        return "张玉娟宝宝哈哈";
    }

    @GetMapping("/hellow")
    public Object hellow(){
        logger.info("info:hello~");
        logger.debug("info:hello~");
        logger.warn("info:hello~");
        logger.error("info:hello~");
        return "钟健大傻逼";
    }
}
